/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package p1gu;

import java.awt.Graphics2D;
import java.io.IOException;
import javax.imageio.ImageIO;

/**
 *
 * @author Michael
 */
public class Vaisseau {

    /**
     * x and y coordinates. Where to draw the animation on the screen?
     */
    public Animation vaisseau;

    public Vaisseau(int x, int y) {

        try {
            vaisseau = new Animation(ImageIO.read(getClass().getResource("resources/images/vaisseau.png")), 128, 128, 4, 250, true, 0, 0, 0);
        } catch (IOException ex) {
        }
        vaisseau.x = x;
        vaisseau.y = y;

    }

    public void draw(Graphics2D g2d) {
        vaisseau.Draw(g2d);
    }
}
